<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>Decks</title>
  <%@ include file="/WEB-INF/jsp/headers.jsp" %>
  </head>
<body>

  <%@ include file="/WEB-INF/jsp/heading.jsp" %>
  
  <div class="content">
  <%@ include file="/WEB-INF/jsp/sidebar.jsp" %>
  
    <div class="main">  
      <h1>New Deck</h1>
      <c:url var="saveUrl" value='/decks/create' context='/app'/>
			<form:form action="${saveUrl}" commandName="deck" method="post">
			    
			  <p>
			    <label for="id">ID:</label><a href="#" id="id_help_link" title="what's this?" >?</a><br />
			    <form:input path="id" />
			    <form:errors cssClass="error" path="id"/>
			  </p>
			  <%@ include file="/WEB-INF/jsp/id_help.jsp" %>
			  <p>
			    <label for="title">Title:</label><a href="#" id="title_help_link" title="what's this?" >?</a><br />
			    <form:input path="title" />
			    <form:errors cssClass="error" path="title"/>
			  </p>
			  <%@ include file="/WEB-INF/jsp/title_help.jsp" %>
			  <p>
			    <label for="data">Data:</label><a href="#" id="data_help_link" title="what's this?" >?</a><br />
			    <form:textarea path="jsonData" rows="7" cols="60" />
			    <form:errors cssClass="error" path="jsonData"/>
			  </p>
			  <%@ include file="/WEB-INF/jsp/data_help.jsp" %>
			  <p><input type="submit" value="Save"/></p>
			  <p><a href="<c:url value="/decks" context="/app"/>">Cancel</a></p>
			</form:form>
    </div>
  </div>
  <%@ include file="/WEB-INF/jsp/footer.jsp" %>

</body>
</html>